/* 
 * File:   EngineFacadeThread.h
 * Author: ariel
 *
 * Created on 4 de diciembre de 2009, 19:55
 */

#ifndef _ENGINEFACADETHREAD_H
#define	_ENGINEFACADETHREAD_H

#include "../server/thread/Runnable.h"
#include "SearchEngine.h"
#include "../server/ServerSocket.h"
#include <map>
#include <iostream>

class EngineFacadeThread : public Runnable {
public:
    // Usar const???
    EngineFacadeThread(SearchEngine* engine,ServerSocket* socket) {
        this->engine=engine;
        this->socket=socket;
    }
    void run();
    EngineFacadeThread(const EngineFacadeThread& orig){}
    virtual ~EngineFacadeThread();
private:
    // Mutear el engine
    Method parseCommand(std::string&) throw(std::exception);
    SearchEngine * engine;
    ServerSocket* socket;
};

#endif	/* _ENGINEFACADETHREAD_H */

